#include "messageform.h"
#include "ui_messageform.h"

MessageForm::MessageForm(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::MessageForm)
{
    ui->setupUi(this);
    // 绘制对话框气泡
    ui->message_label->setStyleSheet("background-image: url(:/icon/icon/dialog_bubbles.png);"
                                     "background-position: 0px 0px;"
                                     "background-repeat: no-repeat;");
    pixmap = pixmap.scaled(QSize(ui->message_label->width(), 30));
    ui->message_label->setPixmap(pixmap);
}

MessageForm::~MessageForm()
{
    delete ui;
}
